package com.hrm.domain;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

/*
 * 文件类
 */
public class Document {

	private Integer fileID; // 文件ID
	private String fileTitle; // 文件标题
	private String fileName; // 文件名
	private String fileType; // 文件类型
	private byte[] fileBytes; // 文件实体 以二进制的形式存取
	private String fileRemark; // 文件描述
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date fileCreateDate; // 文件存储时间
	private Integer fileUID; // 存储文件的用户的ID

	public Integer getFileID() {
		return fileID;
	}

	public void setFileID(Integer fileID) {
		this.fileID = fileID;
	}

	public String getFileTitle() {
		return fileTitle;
	}

	public void setFileTitle(String fileTitle) {
		this.fileTitle = fileTitle;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public byte[] getFileBytes() {
		return fileBytes;
	}

	public void setFileBytes(byte[] fileBytes) {
		this.fileBytes = fileBytes;
	}

	public String getFileRemark() {
		return fileRemark;
	}

	public void setFileRemark(String fileRemark) {
		this.fileRemark = fileRemark;
	}

	public Date getFileCreateDate() {
		return fileCreateDate;
	}

	public void setFileCreateDate(Date fileCreateDate) {
		this.fileCreateDate = fileCreateDate;
	}

	public Integer getFileUID() {
		return fileUID;
	}

	public void setFileUID(Integer fileUID) {
		this.fileUID = fileUID;
	}

	public Document() {
	}

	// 用于文件信息修改
	public Document(String fileTitle, String fileName, String fileRemark) {
		this.fileTitle = fileTitle;
		this.fileName = fileName;
		this.fileRemark = fileRemark;
	}

	public Document(Integer fileID, String fileTitle, String fileName, String fileType, byte[] fileBytes,
			String fileRemark, Date fileCreateDate, Integer fileUID) {
		this.fileID = fileID;
		this.fileTitle = fileTitle;
		this.fileName = fileName;
		this.fileType = fileType;
		this.fileBytes = fileBytes;
		this.fileRemark = fileRemark;
		this.fileCreateDate = fileCreateDate;
		this.fileUID = fileUID;
	}

}
